home *** CD-ROM | disk | FTP | other *** search
- /* getmove.c - GetMove */
-
- #include "mac/quickdraw.h"
- #include "mac/osintf.h"
- #include "mac/toolintf.h"
- #include "othello.h"
-
-
-
- GetMove(where, move)
- Point *where;
- MoveRecord *move;
- {
- int row, col;
-
- row = where->v - SCALE/2;
- col = where->h - SCALE/2;
- if (row < 0 || col < 0)
- return(FALSE);
- move->row = row / SCALE + 1;
- move->col = col / SCALE + 1;
- return(move->row <= BOARDSIZE && move->col <= BOARDSIZE);
- }
-